//
//  Api.h
//  OrderSeat
//
//  Created by wangwei on 13-10-22.
//  Copyright (c) 2013年 wangwei. All rights reserved.
//

#ifndef OrderSeat_Api_h
#define OrderSeat_Api_h

//接口根路径
#define BASE_URL                @"http://www.mzmw.net/apple"
//获取数据版本号
#define API_DATA_VERSION        BASE_URL@"/dinnerlist.asp?act=check"
//获取当前位置的城市
#define API_FETCH_CITY          BASE_URL@"/index.asp?lng=%@&lat=%@&act=dingwei"
//菜系数据
#define API_CAIXI               BASE_URL@"/dinnerlist.asp?act=caixi"
//县区数据
#define API_XIANQU              BASE_URL@"/dinnerlist.asp?act=xianqu&city=%@"
//默认排序
#define API_ORDER               BASE_URL@"/dinnerlist.asp?act=paixu"
//距离
#define API_DISTANCE            BASE_URL@"/near.asp?act=juli"
//今日特惠
#define API_TODAY               BASE_URL@"/index.asp?act=tehui&city=%@"
//搜索
#define API_SHOP_SEARCH         BASE_URL@"/index.asp?lng=%@&lat=%@&keys=%@&act=search&page=%d&city=%@"
//餐厅列表
#define API_SHOP_LIST           BASE_URL@"/dinnerlist.asp?lng=%@&lat=%@&caixi=%@&xianqu=%@&shangquan=%@&book_type=%@&page=%d&city=%@"
//附近餐厅列表
#define API_SHOP_LIST_NEARBY    BASE_URL@"/near.asp?lng=%@&lat=%@&caixi=%@&juli=%@&page=%d&city=%@"
//餐厅信息
#define API_SHOP_INFO           BASE_URL@"/dinner.asp?id=%@&username=%@"
//餐厅详情
#define API_SHOP_DETAIL_INFO    BASE_URL@"/dinner.asp?id=%@&act=info"
//餐厅喜欢
#define API_SHOP_LIKE           BASE_URL@"/dinner.asp?id=%@&act=xihuan"
//餐厅收藏
#define API_SHOP_FAVORITES      BASE_URL@"/dinner.asp?id=%@&act=shoucang&username=%@"
//餐厅分享
#define API_SHOP_SHARE          BASE_URL@"/dinner.asp?id=%@&act=shoucang&username=%@"

//餐厅点评
#define API_SHOP_COMPOST        BASE_URL@"/dinner.asp?id=%@&act=add_dianping&username=%@&kouwei=%@&huanjing=%@&fuwu=%@&pingfen=%@&xiaofei=%@&pingyu=%@"
//餐厅相册
#define API_SHOP_PHOTO_ALL      BASE_URL@"/dinner.asp?id=%@&act=photo&page=%d"
#define API_SHOP_PHOTO_ENV      BASE_URL@"/dinner.asp?id=%@&act=photo&page=%d&ptype=1"
#define API_SHOP_PHOTO_DISH     BASE_URL@"/dinner.asp?id=%@&act=photo&page=%d&ptype=2"
#define API_SHOP_PHOTO_SEARCH   BASE_URL@"/photo.asp?act=searchdinner&keys=%@"

//餐厅评论列表
#define API_SHOP_COMMENTS       BASE_URL@"/dinner.asp?id=%@&act=pinglun&page=%d"
//餐厅修改错误
#define API_SHOP_CHANGE_ERR     BASE_URL@"/dinner.asp?id=%@&act=jiucuo&content=%@&contact=%@"
//餐厅菜品分类-大类
#define API_DISH_BIT_CAT        BASE_URL@"/dish.asp?id=%@&act=fenlei"
//餐厅菜品分类-小类
#define API_DISH_SMALL_CAT      BASE_URL@"/dish.asp?id=%@&act=caipin&fenlei=%@"
//餐厅菜品列表
#define API_DISH_DISH_LIST      BASE_URL@"/dish.asp?id=%@&act=dish&lbid=%@"
//预定菜品
#define API_DISH_ORDER          BASE_URL@"/dish.asp?act=add_dorder&username=%@&id=%@&caipin=%@&renshu=%@&time=%@&zaowan=%@&mobile=%@&seat=%@&xingshi=%@&xingbie=%@"
//修改订单菜品
#define API_EDIT_DISH_ORDER     BASE_URL@"/center.asp?act=dish_edit&id=%@&caipin=%@"
//预定菜品关联
#define API_DISH_ORDERS         BASE_URL@"/seat.asp?id=%@&act=guanlian&username=%@"
//套餐列表
#define API_PACKAGE_LIST        BASE_URL@"/dish.asp?act=taocan&id=%@"
//套餐详情
#define API_PACKAGE_DETAIL      BASE_URL@"/dish.asp?act=taocan_info&id=%@&tid=%@"
//套餐预定
#define API_PACKAGE_ORDER       BASE_URL@"/dish.asp?act=add_torder&username=%@&id=%@&taocan_id=%@&fenshu=%@&time=%@&zaowan=%@&mobile=%@&seat=%@&xingshi=%@&xingbie=%@"
//座位状态
#define API_SEAT_STATE          BASE_URL@"/seat.asp?act=zhuangtai&id=%@&time=%@&zaowan=%d"
//座位列表
#define API_SEAT_LIST           BASE_URL@"/seat.asp?act=zuowei&id=%@&type=%d&time=%@&zaowan=%d"
//座位预定
#define API_SEAT_ORDER          BASE_URL@"/seat.asp?act=add_order&username=%@&id=%@&zuowei_id=%@&zuowei_type=%@&renshu=%@&time=%@&zaowan=%@&mobile=%@&caipin=%@&xingshi=%@&xingbie=%@"
//已订座位
#define API_SEAT_ORDERS         BASE_URL@"/dish.asp?id=%@&act=guanlian&username=%@"
//预定范围
#define API_SEAT_DATE           BASE_URL@"/seat.asp?act=orderset&id=%@"
//检查是否有座位
#define API_CHECK_HAVE_SEAT     BASE_URL@"/dish.asp?act=haveseat&id=%@&username=%@"

//首页优惠券
#define API_HOME_COUPONS        BASE_URL@"/other.asp?act=youhuiquan&caixi=%@&xianqu=%@&shangquan=%@&book_type=%@&page=%d&city=%@"
//优惠券详情
#define API_COUPON_INFO         BASE_URL@"/other.asp?act=yhq_info&id=%@&username=%@"
//下载优惠券
#define API_COUPON_DOWNLOAD     BASE_URL@"/other.asp?act=ydownload&id=%@&mobile=%@"
//喜欢优惠券
#define API_COUPON_LIKE         BASE_URL@"/other.asp?act=yxihuan&id=%@"
//收藏优惠券
#define API_COUPON_FAVORITES    BASE_URL@"/other.asp?act=yshoucang&id=%@&username=%@"
//收藏优惠券
#define API_COUPON_SHARES       BASE_URL@"/other.asp?act=yfenxiang&id=%@"
//优惠券点评
#define API_COUPON_COMPOSE      BASE_URL@"/other.asp?act=add_ypinglun&id=%@&pingyu=%@&username=%@"
//优惠券点评列表
#define API_COUPON_COMMS        BASE_URL@"/other.asp?act=ypinglun&id=%@&page=%d"

//首页美食
#define API_HOME_GOURMET        BASE_URL@"/other.asp?act=meishi&caixi=%@&xianqu=%@&shangquan=%@&book_type=%@&page=%d&city=%@"
//美食详情
#define API_GOURMET_DETAIL      BASE_URL@"/other.asp?act=ms_info&id=%@&username=%@"
//美食喜欢接口
#define API_GOURMET_LIKE        BASE_URL@"/other.asp?act=mxihuan&id=%@"
//美食收藏
#define API_GOURMET_FAVORITES   BASE_URL@"/other.asp?act=mshoucang&id=%@&username=%@"
//美食分享
#define API_GOURMET_SHARES      BASE_URL@"/other.asp?act=mfenxiang&id=%@"
//美食点评
#define API_GOURMET_COMPOSE     BASE_URL@"/other.asp?act=add_mpinglun&id=%@&pingyu=%@&username=%@"
//美食点评列表
#define API_GOURMET_COMMS        BASE_URL@"/other.asp?act=mpinglun&id=%@&page=%d"

//首页活动
#define API_HOME_ACTIVITY       BASE_URL@"/other.asp?act=huodong&page=%d&city=%@"
//活动详情
#define API_ACTIVITY_INFO       BASE_URL@"/other.asp?act=hd_info&id=%@&username=%@"
//活动喜欢
#define API_ACTIVITY_LIKE       BASE_URL@"/other.asp?act=hxihuan&id=%@"
//活动收藏
#define API_ACTIVITY_FAV        BASE_URL@"/other.asp?act=hshoucang&id=%@&username=%@"
//活动分享
#define API_ACTIVITY_SHARE      BASE_URL@"/other.asp?act=hfenxiang&id=%@"
//活动点评
#define API_ACTIVITY_COMPOSE    BASE_URL@"/other.asp?act=add_hpinglun&id=%@&pingyu=%@&username=%@"
//活动点评列表
#define API_ACTIVITY_COMMS        BASE_URL@"/other.asp?act=hpinglun&id=%@&page=%d"

//附近外卖
#define API_HOME_DELIVERY       BASE_URL@"/waimai.asp?act=index&lng=%@&lat=%@&juli=%@&page=%d&city=%@"
#define API_DSHOP_INFO          BASE_URL@"/waimai.asp?act=info&id=%@"
#define API_DSHOP_CAT           BASE_URL@"/waimai.asp?act=wmlb&id=%@"
#define API_DSHOP_DISH          BASE_URL@"/waimai.asp?act=caipin&id=%@&lbid=%@"

//相册广场
#define API_PHOTO_ALL           BASE_URL@"/photo.asp?act=index&page=%d&city=%@"
#define API_PHOTO_ENV           BASE_URL@"/photo.asp?act=index&page=%d&ptype=1&city=%@"
#define API_PHOTO_DISH          BASE_URL@"/photo.asp?act=index&page=%d&ptype=2&city=%@"
#define API_PHOTO_INFO          BASE_URL@"/photo.asp?act=info&pid=%@"
#define API_PHOTO_POST          BASE_URL@"/photo.asp?act=add_photo&username=%@"
#define API_PHOTO_LIKE          BASE_URL@"/photo.asp?act=pxihuan&pid=%@"
#define API_PHOTO_SHARE         BASE_URL@"/photo.asp?act=fenxiang&pid=%@"
#define API_PHOTO_COMPOSE       BASE_URL@"/photo.asp?act=add_pinglun&pid=%@&pingyu=%@&username=%@"
#define API_PHOTO_COMMS         BASE_URL@"/photo.asp?act=ppinglun&pid=%@&page=%d"

//登陆
#define API_LOGIN           BASE_URL@"/state.asp?username=%@&password=%@&act=login"
//注册
#define API_REGISTER        BASE_URL@"/state.asp?username=%@&password=%@&act=register"
//快速注册
#define API_FAST_REGISTER   BASE_URL@"/state.asp?act=fast&mobile=%@&yanzhengma=%@"
//快速注册获取短信验证码
#define API_F_MESSAGE       BASE_URL@"/message.asp?act=fmessage&mobile=%@"
//普通注册获取短信验证码
#define API_R_MESSAGE       BASE_URL@"/message.asp?act=rmessage&mobile=%@&username=%@"
//普通注册验证完成
#define API_REGIST_DONE     BASE_URL@"/message.asp?act=ryanzheng&yanzhengma=%@&mobile=%@&username=%@"
//获取其他短信验证码
#define API_MESSAGE         BASE_URL@"/message.asp?act=message&mobile=%@"
//手机是否注册过
#define API_TEL_ISREGISTER  BASE_URL@"/state.asp?mobile=%@&act=takeverify"
//验证手机验证码
#define API_VALIDATE_CODE   BASE_URL@"/message.asp?act=yanzheng&jiaoyanma=%@&mobile=%@"
//修改手机号码
#define API_UPDATE_TEL      BASE_URL@"/center.asp?act=editmobile&username=%@&mobile=%@"
//找回密码
#define API_RESET_PASS      BASE_URL@"/state.asp?mobile=%@&password=%@&act=takepass"
//快速注册
#define API_QUICKVERIFY     BASE_URL@"/state.asp?mobile=%@&act=fast"
//找回密码
#define API_TAKEVERIFY      BASE_URL@"/state.asp?mobile=%@&act=takeuser"
//修改资料
#define API_ALTER           BASE_URL@"/center.asp?act=editinfo&username=%@&nicheng=%@&xingshi=%@&xingbie=%@&mobile=%@&email=%@&password=%@"
//获取用户信息
#define API_USER_INFO       BASE_URL@"/center.asp?act=userinfo&username=%@"
//修改用户信息
#define API_UPDATE_USER     BASE_URL@"/center.asp?act=editinfo&username=%@"
//会员中心修改密码
#define API_UPDATE_PASS     BASE_URL@"/center.asp?act=editpass&username=%@&oldpass=%@&newpass=%@"
//修改用户头像
#define API_UPDATE_PHOTO    BASE_URL@"/center.asp?act=editphoto&username=%@"
//注册完成验证手机
#define API_REGIST_VALIDATE BASE_URL@"/state.asp?username=%@&mobile=%@&act=verify"

//===========================
#pragma======修改手机号码======
//===========================
//获取验证码
#define API_UD_MESSAGE       BASE_URL@"/message.asp?username=%@&mobile=%@&act=emessage"
//验证短信验证码
#define API_UD_VALIDATE      BASE_URL@"/message.asp?act=ryanzheng&mobile=%@&yanzhengma=%@"
//修改手机号码
#define API_UD_UPDATE_MOBILE BASE_URL@"/center.asp?act=editmobile&username=%@&mobile=%@"
//会员基本信息
#define API_INDEX           BASE_URL@"/center.asp?act=index&username=%@"
//最新订单
#define API_NEW_ORDER       BASE_URL@"/center.asp?act=neworder&username=%@&page=%d"
//已完成订单
#define API_DONE_ORDER      BASE_URL@"/center.asp?act=finorder&username=%@&page=%d"
//详细信息
#define API_ORDER_INFO      BASE_URL@"/center.asp?act=orderinfo&id=%@"
//订单中的座位
#define API_MYORDER_SEATS   BASE_URL@"/center.asp?act=orderzuowei&id=%@"
//订单中的菜品
#define API_MYORDER_DISHES  BASE_URL@"/center.asp?act=ordercaipin&id=%@"
//订单中的菜品
#define API_MYORDER_UPDATE  BASE_URL@"/center.asp?act=order_dish&id=%@"
//取消订单
#define API_CANCEL_ORDER     BASE_URL@"/center.asp?act=quxiaoorder&id=%@"
//收藏餐厅数据接口
#define API_COLLECT_DINNER  BASE_URL@"/center.asp?act=scdinner&username=%@&page=%d"
//收藏美食数据接口
#define API_COLLECT_DISH    BASE_URL@"/center.asp?act=scmeishi&username=%@&page=%d"
//我的正进行优惠券数据接口
#define API_COUPONING       BASE_URL@"/center.asp?act=youhuiquan&state=now&username=%@&page=%d"
//我的过期优惠券数据接口
#define API_COUPONED        BASE_URL@"/center.asp?act=youhuiquan&state=pass&username=%@&page=%d"
//我的正进行活动数据接口
#define API_ACTIVITYING     BASE_URL@"/center.asp?act=schuodong&state=now&username=%@&page=%d"
//我的过期活动数据接口
#define API_ACTIVITYED      BASE_URL@"/center.asp?act=schuodong&state=pass&username=%@&page=%d"
//我发布的点评数据接口
#define API_REVIEW          BASE_URL@"/center.asp?act=dianping&username=%@&page=%d"
//所有照片
#define API_MY_PHOTO_ALL    BASE_URL@"/center.asp?act=xiangce&username=%@&page=%d"
//环境接口
#define API_MY_PHOTO_ENV    BASE_URL@"/center.asp?act=xiangce&username=%@&page=%d&ptype=1"
//菜品接口
#define API_MY_PHOTO_DISH   BASE_URL@"/center.asp?act=xiangce&username=%@&page=%d&ptype=2"
//删除收藏的餐厅
#define API_DEL_SHOP        BASE_URL@"/center.asp?act=delct&id=%@"
//删除收藏的美食
#define API_DEL_DISH        BASE_URL@"/center.asp?act=delms&id=%@"
//删除收藏的优惠
#define API_DEL_COUPON      BASE_URL@"/center.asp?act=delyhq&id=%@"
//删除收藏的活动
#define API_DEL_ACTIVITY    BASE_URL@"/center.asp?act=delhd&id=%@"
//删除收藏的点评
#define API_DEL_COMMENTS    BASE_URL@"/center.asp?act=deldp&id=%@"
//删除收藏照片
#define API_DEL_PHOTO       BASE_URL@"/center.asp?act=delpt&id=%@"

//餐厅投诉
#define API_COMPLAINT       BASE_URL@"/more.asp?act=tousu&dname=%@&content=%@"
//关于美滋美味
#define API_ABOUT           BASE_URL@"/more.asp?act=about"
//意见反馈
#define API_FEEDBACK        BASE_URL@"/more.asp?act=fankui&content=%@"
//微信公众平台
#define API_WEIXIN          BASE_URL@"/more.asp?act=weixin"
//版本更新
#define API_VERSION         BASE_URL@"/more.asp?act=getnewversion"
//获取当前城市
#define API_LOCATION_CITY   @"http://ugc.map.soso.com/rgeoc/?lnglat=%@,%@&reqsrc=wb"
//获取开通城市
#define API_GET_CITY        BASE_URL@"/index.asp?act=city"

#endif
